import request from '@/utils/request'

// 查询军检核验记录列表父级
export function listTArmyCheck(query) {
  return request({
    url: '/TArmyExamine/TArmyExamine/inspectionlist',
    method: 'get',
    params: query
  })
}

// 查询军检核验记录列表子级
export function listTArmyCheckChild(query) {
  return request({
    url: '/TArmyExamine/TArmyExamine/inspectionchildlist/' + query.id,
    method: 'get',
    params: query
  })
}

// 查询历史资料子级
export function componentList(query) {
  return request({
    url: '/system/armyPleaseProduct/componentList',
    method: 'get',
    params: query
  })
}

// 预览历史军检资料
export function previewhistory(id) {
  return request({
    url: '/system/armyPleaseProduct/preview/'+id,
    method: 'get'
  })
}

// 提交军检
export function submitArmyCheck(data) {
  return request({
    url: '/TArmyExamine/TArmyExamine/addinspection1',
    method: 'post',
    data
  })
}
// 新增请检

export function armyPlease(data) {
  return request({
    url: '/system/armyPlease/armyPlease',
    method: 'post',
    data
  })
}
